//
//  SPGeneralPreferences.h
//  Sophie
//
//  Created by Anton Chebotaev on 7/10/09.
//  Copyright 2009 IFMO. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <LJClientKit/LJClientKit.h>
#import "SPAccountController.h"
#import "MBPreferencesController.h"

@interface SPGeneralPreferencesViewController : NSViewController <MBPreferencesModule> {
	// Account
	IBOutlet NSTextField *usernameField;
	IBOutlet NSSecureTextField *passwordField;	
	IBOutlet NSProgressIndicator *logginingInIndicator;
	IBOutlet NSImageView *defaultUserpicImageView;
	
	// Entries
	IBOutlet NSButton *shouldCreateEntryButton;
	IBOutlet NSButton *shouldDetecMusicButton;
	IBOutlet NSPopUpButton *defaultSecurityLevelPopup;
	IBOutlet NSButton *shouldAutosaveButton;
	IBOutlet NSPopUpButton *autosaveIntervalPopUp;

	// Updates
	IBOutlet NSButton *shouldCheckUpdatesButton;
	IBOutlet NSButton *updatesIntervalPopup;	
}

#pragma mark Required by MBPreferencesModule
- (NSString *)title;
- (NSString *)identifier;
- (NSImage *)image;

#pragma mark Optional by MBPreferencesModule
- (void)willBeDisplayed;

#pragma mark IBActions
- (IBAction)applyAccountChanges:(id)sender;
- (IBAction)applyPreferences:(id)sender;

#pragma mark UI
@end
